package com.mew.slots.core.game.szxz.message;

import com.mew.slots.core.common.messge.response.SlotsBonusPlayResponseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

/**
 * @author dylin
 * @create 2021/3/12
 */
@Data
@ToString(callSuper = true)
public class SzxzBonusPlayResponseMessage extends SlotsBonusPlayResponseMessage {
    private int isGameOver;//游戏是否结束
    private int type;//中奖类型 0 金币 ,1 向上 ,2 mini ,3 minor ,4 major ,5 grand
    private int rate;//倍数
    private long winGold;//中奖金额
    private int bonusNumber;//剩余转盘次数

    @Override
    public void write(ByteBuf b) {
        super.write(b);
        writeInt(b,isGameOver);
        writeInt(b,type);
        writeInt(b,rate);
        writeLong(b,winGold);
        writeInt(b,bonusNumber);
    }

    @Override
    public SzxzBonusPlayResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
